package com.jcli.jb51_net.article._数据截取的demo;

public class StringManipulation {
    public static void main(String[] args) {
        String originalData = "01234567890123456789012345678901234567890123456789012345678901234567890123456789";
        String originalData1 = "56789012345678901234567890123456789012345678901234567890123456789012345678901234";

        // 提取第一串数据（前50个字符）
        String firstPart = originalData.substring(0, 50);

        // 提取第二串数据（后50个字符）
        String secondPart = originalData1.substring(originalData.length() - 50);

        // 拼接两个子串
        String result = firstPart + secondPart;

        // 输出结果
        System.out.println("Original Data: " + originalData);
        System.out.println("Original Data1: " + originalData1);
        System.out.println("First Part: " + firstPart);
        System.out.println("Second Part: " + secondPart);
        System.out.println("Result: " + result);
    }
}
